backgroundColor

public static EditorCommand backgroundColor(Color color)

Returns a command that allows setting the given background color for the selected text in a WYSIWYG editor.

Parameters

color

a new background color


public static EditorCommand backgroundColor(String colorName)

Returns a command that allows setting the given background colorName for the selected text in a WYSIWYG editor.

Parameters

colorName

a new background color name

Throws

when colorName is empty or blank